//
//  RefreshHeader.swift
//  SwiftProject
//
//  Created by wwj on 16/2/24.
//  Copyright © 2016年 wwj. All rights reserved.
//

import UIKit
import MJRefresh

class RefreshHeader: MJRefreshGifHeader {
    override func prepare() {
        super.prepare()
        self.setImages([UIImage(named: "v2_pullRefresh1")!],  forState: MJRefreshState.Idle)
        self.setImages([UIImage(named: "v2_pullRefresh2")!], forState: MJRefreshState.Pulling)
        self.setImages([UIImage(named: "v2_pullRefresh1")!, UIImage(named: "v2_pullRefresh2")!], forState: MJRefreshState.Refreshing)
        
        self.setTitle("下拉刷新", forState: MJRefreshState.Idle)
        self.setTitle("松手开始刷新", forState: MJRefreshState.Pulling)
        self.setTitle("正在刷新", forState: MJRefreshState.Refreshing)
    }
}